package com.pet.shop.mappers.order;

import com.github.pagehelper.Page;
import com.pet.shop.dto.PageDto;
import com.pet.shop.entity.order.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {

    int delete(Long id);

    int insert(Order record);

    Order get(Long id);

    int update(Order record);

    Page<Order> queryPage(PageDto<Order> page);

    List<Long> queryRoomId(@Param("hotelId") Long hotelId, @Param("orderDate")Date orderDate,
                           @Param("timeSlotId")Long timeSlotId);

    List<Order> queryByParamMap(Map<String, Object> paramMap);
}